﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HotelResSystem2;
using System.Drawing;

namespace HotelResSystem2
{
    public class RoomInfoFrame : PropertyListener
    {
        public override void onRoomAvailEvent(object source, string name, bool value) 
        {
            Form1 form = Form1.GetInstance();
            if (name == "room.avail")
            {
                form.setRoomAvailTxt(value);
            }
        }

        public override void initialize(RoomInventory roomInv)
        {
            roomInv.addRoomAvailListener(this);
        }
    }
}
